package models

import "gorm.io/gorm"

type SetmealDish struct {
	gorm.Model
	ID        int     `gorm:"column:id;type:int(11);" json:"id"`
	SetmealId int     `gorm:"column:setmeal_id;type:int(11);" json:"setmeal_id"`
	DishId    int     `gorm:"column:dish_id;type:int(11);" json:"dish_id"`
	Name      string  `gorm:"column:name;type:varchar(32);" json:"name"`
	Price     float64 `gorm:"column:price;type:decimal(10,2);" json:"price"`
	Copies    int     `gorm:"column:copies;type:int(11);" json:"copies"`
}

func (SetmealDish) TableName() string {
	return "setmeal_dish"
}
